﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Elight.Entity;
using Elight.Service.Interfaces;
using Elight.Repository.Interfaces;

namespace Elight.Service
{
    public partial class UserService : BaseService<Sys_User>, IUserService
    {
        private readonly IUserRepository _userRepository;

        public UserService(IUserRepository userRepository)
        {
            _userRepository = userRepository;
        }

        public Sys_User GetByUserName(string userName)
        {
            return _userRepository.GetByUserName(userName);
        }
    }
}
